package com.onion.utils.surface.response;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class ResultList<T> extends Result{

    private List<T> data = new ArrayList<>();

    public List<T> getData() {
        return data;
    }
    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public Map<String,Object> returnMsg(){
        super.returnMsg();
        dto.put("data", data);
        return dto;
    }

}